Then /^I want to go to the account settings page$/ do
  @browser.goto("https://secure.newegg.com/NewMyAccount/AccountSettings.aspx")
end

Then /^I want to fill in  my personal information$/ do
  @browser.text_field(:id, "FirstName").set "klink"
  @browser.text_field(:id, "LastName").set "rtroha"
  @browser.text_field(:id, "BAddress1").set "2500 Corporate Exchange Drive"
  @browser.text_field(:id, "BCity").set "Columbus"
  @browser.select_list(:id, "BState").select("OHIO")
  @browser.text_field(:id, "BZip").set "43229"
  @browser.text_field(:id, "BNightPhone_tel1").set "614"
  @browser.text_field(:id, "BNightPhone_tel2").set "867"
  @browser.text_field(:id, "BNightPhone_tel3").set "5309"
  
end


And /^fill in the optional information$/ do
  @browser.select_list(:id, "custtype").select("Business")
  @browser.text_field(:id, "Age").set "23"
  @browser.select_list(:id, "income").select("$76k+")
  @browser.select_list(:id, "income").select("$76k+")
  @browser.select_list(:id, "education").select("Four-Year University")
  @browser.select_list(:id, "GameHours").select("31 or more")
  @browser.select_list(:id, "FirstPurchase").select("No")
end

Then /^submit the data$/ do
  @browser.link(:href, "javascript:cmCreateElementTag('UpdateAddressOrOther','AccountSettings'); Biz.NewMyAccount.Customer.modify('formcustomer',true);").click
end